// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   ChartAndroidFont.java

package com.java4less.rchart.gc.android;

import android.graphics.Typeface;
import com.java4less.rchart.gc.ChartFont;

public class ChartAndroidFont extends ChartFont
{

	private Typeface font;
	private int size;

	public ChartAndroidFont(Object f)
	{
		font = (Typeface)f;
	}

	public ChartAndroidFont(String name, int style, int size)
	{
		int s = 0;
		if (style == ChartFont.BOLD)
			s = 1;
		if (style == ChartFont.ITALIC)
			s = 2;
		if (style == ChartFont.BOLD_ITALIC)
			s = 3;
		this.size = size;
		if (name.equals("NULL"))
			name = null;
		font = Typeface.create(name, style);
	}

	public Typeface getFont()
	{
		return font;
	}

	public int getSize()
	{
		return size;
	}
}
